//
//  UIScreen+DDAdd.h
//  AFNetworking
//
//  Created by 许龙 on 2020/3/25.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIScreen (DDAdd)

/**
 Main screen's scale
 
 @return screen's scale
 */
+ (CGFloat)screenScale;

/**
 Returns the bounds of the screen for the current device orientation.
 
 @return A rect indicating the bounds of the screen.
 @see    boundsForOrientation:
 */
- (CGRect)currentBounds;

/**
 Returns the bounds of the screen for a given device orientation.
 `UIScreen`'s `bounds` method always returns the bounds of the
 screen of it in the portrait orientation.
 
 @param orientation  The orientation to get the screen's bounds.
 @return A rect indicating the bounds of the screen.
 @see  currentBounds
 */
- (CGRect)boundsForOrientation:(UIInterfaceOrientation)orientation;

/**
 Returns the width of the screen for the current device orientation.
 */
- (CGFloat)width;

/**
 Returns the height of the screen for the current device orientation.
 */
- (CGFloat)height;

/**
 Returns the height of the statusBar for the current device orientation.
 */
- (CGFloat)statusBarHeight;

/**
 Returns the height of the navigationBar for the current device orientation.
*/
- (CGFloat)navigationBarHeight;

/**
 Returns the height of the tabBar for the current device orientation.
*/
- (CGFloat)tabBarHeight;

/**
 Returns the height of the bottom view for the current device orientation.
*/
- (CGFloat)bottomHeight;

/**
 Returns the height of the top view for the current device orientation.
*/
- (CGFloat)topHeight;

// 热点高度
- (CGFloat)hotSpotHeight;

@end

NS_ASSUME_NONNULL_END
